package com.jbookstore.service.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;

import com.jbookstore.dao.OrderDao;
import com.jbookstore.service.OrderService;

public class OrderServiceImpl implements OrderService {
	
	@Autowired
	OrderDao orderDao;
	
	public String getOrderId() {
		
		String orderId = "ord" + String.valueOf(orderDao.selectRowCount()); 
		
		return orderId;
	}
}
